package com.cashmama.market.api.domain.vo.product;

import com.cashmama.market.api.domain.vo.order.OrderFieldDetail;
import com.google.common.collect.Lists;

import java.util.List;

public class BorrowCashPeriodVO {

    /**
     * 期数 14DAYS/7DAYS
     */
    private String duration;

    /**
     * 产品编号
     */
    private String productCode;

    /**
     * 是否锁定
     */
    private Boolean locked;

    private List<OrderFieldDetail> otherInfo = Lists.newArrayList();


    public BorrowCashPeriodVO() {
    }

    public BorrowCashPeriodVO(String duration) {
        this.duration = duration;
    }

    public String getDuration() {
        return duration;
    }

    public BorrowCashPeriodVO setDuration(String duration) {
        this.duration = duration;
        return this;
    }

    public String getProductCode() {
        return productCode;
    }

    public BorrowCashPeriodVO setProductCode(String productCode) {
        this.productCode = productCode;
        return this;
    }

    public Boolean getLocked() {
        return locked;
    }

    public BorrowCashPeriodVO setLocked(Boolean locked) {
        this.locked = locked;
        return this;
    }

    public List<OrderFieldDetail> getOtherInfo() {
        return otherInfo;
    }

    public BorrowCashPeriodVO setOtherInfo(List<OrderFieldDetail> otherInfo) {
        this.otherInfo = otherInfo;
        return this;
    }
}